package com.ruoyi.community.mapper;

import java.util.List;
import com.ruoyi.community.domain.Building;

/**
 * 楼栋Mapper接口
 *
 * @author HuangRong
 * @date 2023-05-11
 */
public interface BuildingMapper
{
    /**
     * 查询楼栋
     *
     * @param buildingId 楼栋主键
     * @return 楼栋
     */
    public Building selectBuildingByBuildingId(Long buildingId);

    /**
     * 查询楼栋列表
     *
     * @param building 楼栋
     * @return 楼栋集合
     */
    public List<Building> selectBuildingList(Building building);

    /**
     * 新增楼栋
     *
     * @param building 楼栋
     * @return 结果
     */
    public int insertBuilding(Building building);

    /**
     * 修改楼栋
     *
     * @param building 楼栋
     * @return 结果
     */
    public int updateBuilding(Building building);

    /**
     * 删除楼栋
     *
     * @param buildingId 楼栋主键
     * @return 结果
     */
    public int deleteBuildingByBuildingId(Long buildingId);

    /**
     * 批量删除楼栋
     *
     * @param buildingIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBuildingByBuildingIds(Long[] buildingIds);
}
